<?php
/**          
**/

include('../include/config.inc.php');
include(CE_ROOT.'/include/admin/check.inc.php');
include(CE_ROOT.'/include/celive.class.php');
$admin = new celive();
$admin->template();
$admin->auth();

if($_GET['action']=='clearcache'){
	$db->clear_cache();
	$GLOBALS['template']->assign('clear_cache','<font color=red>更新成功</font>');
}
if($GLOBALS['auth']->admin()){ 
	$GLOBALS['template']->assign('ifadmin',1);
}

$GLOBALS['template']->assign('username',$_SESSION['cel_username']);
$GLOBALS['template']->assign('header','admin/header.htm');
$GLOBALS['template']->assign('gotocmseasy','../../index.php?case=guestbook&act=index');
$GLOBALS['template']->assign('main','admin/main.htm');
$GLOBALS['template']->assign('footer','admin/footer.htm');
$GLOBALS['template']->display('admin/index.htm');
$admin->printjs();
?>